package com.shop.service;

import com.shop.pojo.Cart;
import com.shop.result.JsonResult;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface CartService {

    String addGoodToCartByToken(String data,String token) throws Exception;

    String deleteGoodToCartByToken(String data,String token) throws Exception;

    List<Cart> getGoodsCartByToken(String token);

    String deleteAllGoodToCartByToken(String token) throws Exception;

    String commitUserCartToPay(HttpServletRequest request, HttpServletResponse response) throws Exception;
}
